////////////////////////////////////////////////////////////////////////////////
//
//	This file is part of Woozox, see <http://code.google.com/p/woozox/>.
//
//	Copyright 2008-2009 Florian David
//
//	Woozoo is free software: you can redistribute it and/or modify
//	it under the terms of the GNU Lesser General Public License as 
//	published by the Free Software Foundation, either version 3 of 
//	the License, or (at your option) any later version.
//
//	Woozoo is distributed in the hope that it will be useful,
//	but WITHOUT ANY WARRANTY; without even the implied warranty of
//	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//	GNU General Public License for more details.
//
//	You should have received a copy of the GNU Lesser General Public 
//	License along with Woozoo. If not, see <http://www.gnu.org/licenses/>.
//
////////////////////////////////////////////////////////////////////////////////
package org.woozoo.xhtml.unittests.selectorsuite
{
	public class CaseNthChild extends CaseBase
	{
		private var __xml : XML = <html>
									 <head>
									  <meta />
									  <title>:nth-of-type() Sizzle/jQuery?</title>
									 </head>
									 <body>
									   <div>
	  <h2>The following CSS is applied to this document:</h2>
	  <pre>body p:nth-of-type(2n)  background: red; </pre>
	  <pre>body p:nth-of-type(2n)</pre>
	  <p>This is paragraph #1.</p>
	  <p>This is paragraph #2. (Should be matched.)</p>
	  <p>This is paragraph #3.</p>
	  <p>This is paragraph #4. (Should be matched.)</p>
	  <div>This is not a paragraph, but a <code>div</code>.</div>
	  <div>This is not a paragraph, but a <code>div</code>.</div>
	  <div>This is not a paragraph, but a <code>div</code>.</div>
	  <p>This is paragraph #5.</p>
	  <p>This is paragraph #6. (Should be matched.)</p>
  </div>
  <div>
	  <pre>body p:nth-of-type(2n)</pre>
	  <p>This is paragraph #1-1.</p>
	  <p>This is paragraph #2-1. (Should be matched.)</p>
	  <p>This is paragraph #3-1.</p>
	  <p>This is paragraph #4-1. (Should be matched.)</p>
	  
	  <div>This is not a paragraph, but a <code>div</code>.</div>
	  <div>This is not a paragraph, but a <code>div</code>.</div>
	  <p>This is paragraph #5-1.</p>
	  <p>This is paragraph #6-1. (Should be matched.)</p>
  </div>
									 </body>
									</html>;


		[Before]
		public function createDocument() : void {
			createDocumentFromXML(__xml);
		}

	}
}